{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "45055140",
   "metadata": {},
   "source": [
    "# 安装Jupyter插件"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "fc369fae",
   "metadata": {},
   "source": [
    "#  Web服务API简介\n",
    "* 高德Web服务API向开发者提供HTTP接口，开发者可通过这些接口使用各类型的地理数据服务，返回结果支持JSON和XML格式。Web服务API对所有用户开放。使用本组服务之前，需要申请应用Key。不同类型用户可获取不同的数据访问能力。 \n",
    "\n",
    "# 地理/逆地理编码  \n",
    "*结构化地址:\n",
    "> 首先，地址肯定是一串字符，内含国家、省份、城市、区县、城镇、乡村、街道、门牌号码、屋邨、大厦等建筑物名称。按照由大区域名称到小区域名称组合在一起的字符。一个有效的地址应该是独一无二的。注意：针对大陆、港、澳地区的地理编码转换时可以将国家信息选择性的忽略，但省、市、城镇等级别的地址构成是不能忽略的。暂时不支持返回台湾省的详细地址信息。\n",
    "* 结构化地址<--->经纬度\n",
    "> 地理编码/逆地理编码 API 是通过 HTTP/HTTPS 协议访问远程服务的接口，提供结构化地址与经纬度之间的相互转化的能力\n",
    "\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "1ffdfeb1",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<Response [200]>"
      ]
     },
     "execution_count": 2,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# extensions = base\n",
    "# 1. 调用requests模块\n",
    "import requests\n",
    "\n",
    "# 2. 请求方法：GET\n",
    "\n",
    "# 3. URL地址：\n",
    "geo_url = \"https://restapi.amap.com/v3/geocode/geo?parameters\"\n",
    "\n",
    "# 4. 准备参数，用于交换数据 payload\n",
    "payload = {\n",
    "    \"key\":\"d8f8dec8d7c7b0d5cdcd9b273f65048d\",\n",
    "    \"address\":\"广东省广州市从化区\"\n",
    "}\n",
    "\n",
    "# 5. 发起请求\n",
    "r = requests.get(url=geo_url,params=payload)\n",
    "r"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "b84e01e4",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'count': '1',\n",
       " 'geocodes': [{'formatted_address': '广东省广州市从化区',\n",
       "   'country': '中国',\n",
       "   'province': '广东省',\n",
       "   'citycode': '020',\n",
       "   'city': '广州市',\n",
       "   'district': '从化区',\n",
       "   'township': [],\n",
       "   'neighborhood': {'name': [], 'type': []},\n",
       "   'building': {'name': [], 'type': []},\n",
       "   'adcode': '440117',\n",
       "   'street': [],\n",
       "   'number': [],\n",
       "   'location': '113.586605,23.548852',\n",
       "   'level': '区县'}]}"
      ]
     },
     "execution_count": 3,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r.json()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "id": "6688f9bc",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'113.586605,23.548852'"
      ]
     },
     "execution_count": 4,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "广州南方学院_location = r.json()['geocodes'][0]['location']\n",
    "广州南方学院_location"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "658aad27",
   "metadata": {},
   "source": [
    "# 逆地理编码"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "id": "52eef081",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<Response [200]>"
      ]
     },
     "execution_count": 18,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# extensions=all\n",
    "# 1. 调用requests模块\n",
    "import requests\n",
    "\n",
    "# 2. 请求方法：GET\n",
    "\n",
    "# 3. URL地址：\n",
    "geo_url = \"https://restapi.amap.com/v3/geocode/regeo?parameters\"\n",
    "\n",
    "# 4. 准备参数，用于交换数据 payload\n",
    "payload = {\n",
    "    \"key\":\"d8f8dec8d7c7b0d5cdcd9b273f65048d\",\n",
    "    \"location\":广州南方学院_location,\n",
    "    \"extensions\":\"all\",\n",
    "    \n",
    "}\n",
    "\n",
    "# 5. 发起请求\n",
    "r = requests.get(url=geo_url,params=payload)\n",
    "r"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "id": "300d05a0",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'regeocode': {'roads': [{'id': '020F49F0060454023',\n",
       "    'location': '113.587,23.5481',\n",
       "    'direction': '北',\n",
       "    'name': '新城东路',\n",
       "    'distance': '81.3964'},\n",
       "   {'id': '020F49F006045608841',\n",
       "    'location': '113.587,23.548',\n",
       "    'direction': '北',\n",
       "    'name': '新城东路六巷',\n",
       "    'distance': '92.921'},\n",
       "   {'id': '020F49F006045614615',\n",
       "    'location': '113.586,23.548',\n",
       "    'direction': '东北',\n",
       "    'name': '新城东七巷',\n",
       "    'distance': '101.004'}],\n",
       "  'roadinters': [{'second_name': '新城东七巷',\n",
       "    'first_id': '020F49F0060454023',\n",
       "    'second_id': '020F49F006045614615',\n",
       "    'location': '113.586194,23.548025',\n",
       "    'distance': '101.004',\n",
       "    'first_name': '新城东路',\n",
       "    'direction': '东北'}],\n",
       "  'formatted_address': '广东省广州市从化区街口街道中心会堂',\n",
       "  'addressComponent': {'city': '广州市',\n",
       "   'province': '广东省',\n",
       "   'adcode': '440117',\n",
       "   'district': '从化区',\n",
       "   'towncode': '440117001000',\n",
       "   'streetNumber': {'number': '99号',\n",
       "    'location': '113.586615,23.548660',\n",
       "    'direction': '南',\n",
       "    'distance': '21.3686',\n",
       "    'street': '新城东路'},\n",
       "   'country': '中国',\n",
       "   'township': '街口街道',\n",
       "   'businessAreas': [{'location': '113.586019,23.546975',\n",
       "     'name': '街口',\n",
       "     'id': '440117'},\n",
       "    {'location': '113.568684,23.563922', 'name': '城郊', 'id': '440117'},\n",
       "    {'location': '113.604074,23.533964', 'name': '江埔', 'id': '440117'}],\n",
       "   'building': {'name': [], 'type': []},\n",
       "   'neighborhood': {'name': [], 'type': []},\n",
       "   'citycode': '020'},\n",
       "  'aois': [],\n",
       "  'pois': [{'id': 'B00140MR5X',\n",
       "    'direction': '南',\n",
       "    'businessarea': '街口',\n",
       "    'address': '街口镇新城东路74号',\n",
       "    'poiweight': '0.374805',\n",
       "    'name': '中国银行(广州从化支行)',\n",
       "    'location': '113.586937,23.547972',\n",
       "    'distance': '103.541',\n",
       "    'tel': '020-87929678;020-87923974',\n",
       "    'type': '金融保险服务;银行;中国银行'},\n",
       "   {'id': 'B0FFGJ24FS',\n",
       "    'direction': '东南',\n",
       "    'businessarea': '街口',\n",
       "    'address': '街口街道新城东路99号大院内',\n",
       "    'poiweight': '0.165926',\n",
       "    'name': '从化区人大常委会',\n",
       "    'location': '113.586679,23.548748',\n",
       "    'distance': '13.791',\n",
       "    'tel': '020-87926111',\n",
       "    'type': '政府机构及社会团体;政府机关;区县级政府及事业单位'},\n",
       "   {'id': 'B0FFGJ24FT',\n",
       "    'direction': '东南',\n",
       "    'businessarea': '街口',\n",
       "    'address': '新城东路99',\n",
       "    'poiweight': '0.165926',\n",
       "    'name': '从化区政协',\n",
       "    'location': '113.586679,23.548748',\n",
       "    'distance': '13.791',\n",
       "    'tel': '020-87922613',\n",
       "    'type': '政府机构及社会团体;政府机关;区县级政府及事业单位'},\n",
       "   {'id': 'B0014072CF',\n",
       "    'direction': '南',\n",
       "    'businessarea': '街口',\n",
       "    'address': '新城东路99号',\n",
       "    'poiweight': '0.529579',\n",
       "    'name': '广州市从化区人民政府',\n",
       "    'location': '113.586405,23.548281',\n",
       "    'distance': '66.6705',\n",
       "    'tel': '020-87928410;020-87922712',\n",
       "    'type': '政府机构及社会团体;政府机关;区县级政府及事业单位'},\n",
       "   {'id': 'B00141PSGY',\n",
       "    'direction': '西南',\n",
       "    'businessarea': '街口',\n",
       "    'address': '街口街新城东路99号',\n",
       "    'poiweight': '0.245493',\n",
       "    'name': '从化区委组织部',\n",
       "    'location': '113.586600,23.548848',\n",
       "    'distance': '0.66843',\n",
       "    'tel': '020-87922092',\n",
       "    'type': '政府机构及社会团体;政府机关;区县级政府及事业单位'},\n",
       "   {'id': 'B00141PSC0',\n",
       "    'direction': '西南',\n",
       "    'businessarea': '街口',\n",
       "    'address': '街口街新城东路99号',\n",
       "    'poiweight': '0.249396',\n",
       "    'name': '从化区委宣传部',\n",
       "    'location': '113.586600,23.548848',\n",
       "    'distance': '0.66843',\n",
       "    'tel': '020-87922221',\n",
       "    'type': '政府机构及社会团体;政府机关;区县级政府及事业单位'},\n",
       "   {'id': 'B0FFGJ24ZR',\n",
       "    'direction': '东南',\n",
       "    'businessarea': '街口',\n",
       "    'address': '新城东路99',\n",
       "    'poiweight': '0.165926',\n",
       "    'name': '中共广州市从化区委员会',\n",
       "    'location': '113.586679,23.548748',\n",
       "    'distance': '13.791',\n",
       "    'tel': [],\n",
       "    'type': '政府机构及社会团体;政府机关;区县级政府及事业单位'},\n",
       "   {'id': 'B00140ICZY',\n",
       "    'direction': '东南',\n",
       "    'businessarea': '街口',\n",
       "    'address': '新城东路99',\n",
       "    'poiweight': '0.276118',\n",
       "    'name': '中心会堂',\n",
       "    'location': '113.586608,23.548848',\n",
       "    'distance': '0.532943',\n",
       "    'tel': [],\n",
       "    'type': '科教文化服务;会展中心;会展中心'},\n",
       "   {'id': 'B00140V14Y',\n",
       "    'direction': '东',\n",
       "    'businessarea': '街口',\n",
       "    'address': '街口街荔香村1期1-3栋2层',\n",
       "    'poiweight': '0.287666',\n",
       "    'name': '国美电器(从化店)',\n",
       "    'location': '113.587771,23.548384',\n",
       "    'distance': '129.768',\n",
       "    'tel': '020-37939789',\n",
       "    'type': '购物服务;家电电子卖场;国美'},\n",
       "   {'id': 'B00140MJ8Z',\n",
       "    'direction': '西南',\n",
       "    'businessarea': '街口',\n",
       "    'address': '新城东路80号一、二层',\n",
       "    'poiweight': '0.514928',\n",
       "    'name': '苏宁易购(从化街口路店)',\n",
       "    'location': '113.585729,23.547820',\n",
       "    'distance': '145.411',\n",
       "    'tel': '19902230595',\n",
       "    'type': '购物服务;家电电子卖场;苏宁'},\n",
       "   {'id': 'B0FFG7J09R',\n",
       "    'direction': '东南',\n",
       "    'businessarea': '街口',\n",
       "    'address': '新城东路99',\n",
       "    'poiweight': '0.169373',\n",
       "    'name': '从化区综治信访维稳中心',\n",
       "    'location': '113.587181,23.548300',\n",
       "    'distance': '84.9475',\n",
       "    'tel': '020-87928733',\n",
       "    'type': '政府机构及社会团体;政府机关;区县级政府及事业单位'},\n",
       "   {'id': 'B0FFF3UQW3',\n",
       "    'direction': '东南',\n",
       "    'businessarea': '街口',\n",
       "    'address': '街口镇新城东路68-1号(肯德基对面)',\n",
       "    'poiweight': '0.140757',\n",
       "    'name': '明师教育从化新世纪上课点',\n",
       "    'location': '113.587312,23.547820',\n",
       "    'distance': '135.505',\n",
       "    'tel': '020-87957748',\n",
       "    'type': '科教文化服务;培训机构;培训机构'},\n",
       "   {'id': 'B0FFGJ24CK',\n",
       "    'direction': '南',\n",
       "    'businessarea': '街口',\n",
       "    'address': '新城东路99',\n",
       "    'poiweight': '0.165926',\n",
       "    'name': '广州市从化区国防动员委员会',\n",
       "    'location': '113.586615,23.548660',\n",
       "    'distance': '21.3686',\n",
       "    'tel': [],\n",
       "    'type': '政府机构及社会团体;政府机关;区县级政府及事业单位'},\n",
       "   {'id': 'B0FFF3UNTN',\n",
       "    'direction': '西南',\n",
       "    'businessarea': '街口',\n",
       "    'address': '新城东路80-12',\n",
       "    'poiweight': '0.26943',\n",
       "    'name': '东科商务·富逸财富港',\n",
       "    'location': '113.585527,23.547547',\n",
       "    'distance': '182.033',\n",
       "    'tel': '13725145988',\n",
       "    'type': '商务住宅;楼宇;商务写字楼'},\n",
       "   {'id': 'B00140UGAP',\n",
       "    'direction': '东南',\n",
       "    'businessarea': '街口',\n",
       "    'address': '新城东路68号',\n",
       "    'poiweight': '0.344929',\n",
       "    'name': '林苑大厦(新城东路)',\n",
       "    'location': '113.587891,23.547636',\n",
       "    'distance': '188.329',\n",
       "    'tel': [],\n",
       "    'type': '商务住宅;楼宇;商务写字楼'},\n",
       "   {'id': 'B0FFF3UW5K',\n",
       "    'direction': '西',\n",
       "    'businessarea': '街口',\n",
       "    'address': '新城中路7-9号附近',\n",
       "    'poiweight': '0.170039',\n",
       "    'name': '从化区创建平安工作领导小组办公室',\n",
       "    'location': '113.585646,23.548479',\n",
       "    'distance': '106.187',\n",
       "    'tel': [],\n",
       "    'type': '政府机构及社会团体;政府机关;区县级政府及事业单位'},\n",
       "   {'id': 'B00140J9N4',\n",
       "    'direction': '西',\n",
       "    'businessarea': '街口',\n",
       "    'address': '新城中路39',\n",
       "    'poiweight': '0.141105',\n",
       "    'name': '从化区文化市场综合行政执法队',\n",
       "    'location': '113.585177,23.549109',\n",
       "    'distance': '148.352',\n",
       "    'tel': [],\n",
       "    'type': '政府机构及社会团体;政府机关;区县级政府及事业单位'},\n",
       "   {'id': 'B00140MIC9',\n",
       "    'direction': '北',\n",
       "    'businessarea': '街口',\n",
       "    'address': '西宁中路',\n",
       "    'poiweight': '0.205589',\n",
       "    'name': '从化商业幼儿园',\n",
       "    'location': '113.586572,23.550557',\n",
       "    'distance': '189.626',\n",
       "    'tel': '020-87922390',\n",
       "    'type': '科教文化服务;学校;幼儿园'},\n",
       "   {'id': 'B00140NPDY',\n",
       "    'direction': '北',\n",
       "    'businessarea': '街口',\n",
       "    'address': '西宁中路148号之3附近',\n",
       "    'poiweight': '0.123706',\n",
       "    'name': '新村居委会社区退休职工管理服务站',\n",
       "    'location': '113.586213,23.550350',\n",
       "    'distance': '171.308',\n",
       "    'tel': [],\n",
       "    'type': '政府机构及社会团体;政府机关;乡镇以下级政府及事业单位'},\n",
       "   {'id': 'B00140NETK',\n",
       "    'direction': '西北',\n",
       "    'businessarea': '街口',\n",
       "    'address': '新村东路61-1',\n",
       "    'poiweight': '0.404627',\n",
       "    'name': '新村社区居委会(西宁中路五巷)',\n",
       "    'location': '113.585741,23.550365',\n",
       "    'distance': '189.905',\n",
       "    'tel': '020-87935109',\n",
       "    'type': '政府机构及社会团体;政府机关;乡镇以下级政府及事业单位'},\n",
       "   {'id': 'B00140NTQ0',\n",
       "    'direction': '西北',\n",
       "    'businessarea': '街口',\n",
       "    'address': '新村路60号',\n",
       "    'poiweight': '0.134518',\n",
       "    'name': '中共新村社区支部委员会(西宁中路五巷)',\n",
       "    'location': '113.585741,23.550365',\n",
       "    'distance': '189.905',\n",
       "    'tel': [],\n",
       "    'type': '政府机构及社会团体;政府机关;乡镇以下级政府及事业单位'},\n",
       "   {'id': 'B00141ID88',\n",
       "    'direction': '西南',\n",
       "    'businessarea': '街口',\n",
       "    'address': '新城东路80号',\n",
       "    'poiweight': '0.348063',\n",
       "    'name': '富逸华庭',\n",
       "    'location': '113.586068,23.547672',\n",
       "    'distance': '142.175',\n",
       "    'tel': [],\n",
       "    'type': '商务住宅;住宅区;住宅小区'},\n",
       "   {'id': 'B00141RB6B',\n",
       "    'direction': '西',\n",
       "    'businessarea': '街口',\n",
       "    'address': '新城中路10号',\n",
       "    'poiweight': '0.367551',\n",
       "    'name': '东华里',\n",
       "    'location': '113.584868,23.548563',\n",
       "    'distance': '179.954',\n",
       "    'tel': [],\n",
       "    'type': '商务住宅;住宅区;住宅小区'},\n",
       "   {'id': 'B0FFF32RLG',\n",
       "    'direction': '南',\n",
       "    'businessarea': '街口',\n",
       "    'address': '新城东路99号',\n",
       "    'poiweight': '0.11745',\n",
       "    'name': '从化区人事局',\n",
       "    'location': '113.586410,23.548349',\n",
       "    'distance': '59.3667',\n",
       "    'tel': '020-87922814',\n",
       "    'type': '政府机构及社会团体;政府机关;政府机关相关'},\n",
       "   {'id': 'B0FFF2N8SM',\n",
       "    'direction': '西南',\n",
       "    'businessarea': '街口',\n",
       "    'address': '新城东路99号',\n",
       "    'poiweight': '0.11745',\n",
       "    'name': '从化区监察局',\n",
       "    'location': '113.586272,23.548271',\n",
       "    'distance': '72.9685',\n",
       "    'tel': [],\n",
       "    'type': '政府机构及社会团体;政府机关;政府机关相关'},\n",
       "   {'id': 'B001408643',\n",
       "    'direction': '东',\n",
       "    'businessarea': '街口',\n",
       "    'address': '街口街西宁横街75号',\n",
       "    'poiweight': '0.360069',\n",
       "    'name': '从化区人民政府招待所',\n",
       "    'location': '113.587615,23.549155',\n",
       "    'distance': '108.333',\n",
       "    'tel': '020-87922022',\n",
       "    'type': '住宿服务;旅馆招待所;旅馆招待所'},\n",
       "   {'id': 'B00140TWK0',\n",
       "    'direction': '东南',\n",
       "    'businessarea': '街口',\n",
       "    'address': '新城东路66号林苑大厦1-2层',\n",
       "    'poiweight': '0.355148',\n",
       "    'name': '肯德基甜品站(新世纪店)',\n",
       "    'location': '113.587847,23.547690',\n",
       "    'distance': '180.896',\n",
       "    'tel': '020-87939871;020-87939891',\n",
       "    'type': '餐饮服务;快餐厅;肯德基'},\n",
       "   {'id': 'B0H6DUBGQ5',\n",
       "    'direction': '西',\n",
       "    'businessarea': '街口',\n",
       "    'address': '新城中路41号(广播电视器材站旁)',\n",
       "    'poiweight': '0.27959',\n",
       "    'name': '城悦旅馆',\n",
       "    'location': '113.584900,23.549382',\n",
       "    'distance': '183.527',\n",
       "    'tel': '020-87930209;13798058272',\n",
       "    'type': '住宿服务;旅馆招待所;旅馆招待所'},\n",
       "   {'id': 'B00141KB1H',\n",
       "    'direction': '东南',\n",
       "    'businessarea': '街口',\n",
       "    'address': '街口街新城东路荔香村4栋104、107号',\n",
       "    'poiweight': '0.126091',\n",
       "    'name': '秋田菊寿司料理',\n",
       "    'location': '113.587545,23.548348',\n",
       "    'distance': '111.003',\n",
       "    'tel': '13602412074',\n",
       "    'type': '餐饮服务;外国餐厅;日本料理'},\n",
       "   {'id': 'B0FFG6TUIH',\n",
       "    'direction': '西',\n",
       "    'businessarea': '街口',\n",
       "    'address': '新城中路39',\n",
       "    'poiweight': '0.147889',\n",
       "    'name': '从化区广播电视台城区鳌头广播电视站工会委员会',\n",
       "    'location': '113.585165,23.549144',\n",
       "    'distance': '150.339',\n",
       "    'tel': [],\n",
       "    'type': '政府机构及社会团体;社会团体;社会团体相关'}]},\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000'}"
      ]
     },
     "execution_count": 19,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "r.json()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "97b859d2",
   "metadata": {},
   "outputs": [],
   "source": [
    "import pandas as pd\n",
    "pd.json_nor(r.json()['regeocode']['pois'])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "1c338812",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "62dc0af9",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'suggestion': {'keywords': [], 'cities': []},\n",
       " 'count': '896',\n",
       " 'infocode': '10000',\n",
       " 'pois': [{'parent': 'B0FFFZZMIX',\n",
       "   'address': '南村镇迎宾路万博中心A2栋1-2层(近吉盛伟邦)',\n",
       "   'distance': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '239.00',\n",
       "    'opentime2': '周一至周五11:30-14:00；17:30-21:00周六至周日11:00-14:30；17:00-21:30',\n",
       "    'rating': '4.9',\n",
       "    'open_time': '11:30-14:00 17:30-21:00 11:00-14:30 17:00-21:30',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/c47b79c5b37a8ba6d639b4d36a3d758a'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/0429d6b75d8a5bf3da76cfa6e099ffb2'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/3d964c72bec0e700b0c0c61a7b77b84b'}],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '202',\n",
       "   'adname': '番禺区',\n",
       "   'name': '四海一家(万博中心店)',\n",
       "   'location': '113.341191,23.009259',\n",
       "   'tel': '020-34822200',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFF3LD2T'},\n",
       "  {'parent': [],\n",
       "   'address': '东晓路33号(近海印桥)',\n",
       "   'distance': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '120.00',\n",
       "    'opentime2': '11:00-15:00；17:00-02:00',\n",
       "    'rating': '4.9',\n",
       "    'open_time': '11:00-15:00 17:00-02:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;广东菜(粤菜)',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/c40af283844d3d49c9e40e13f7805163'},\n",
       "    {'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/7a6eaf4b4fc4c0ccb4f73fbd4930764c'},\n",
       "    {'title': '产品图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/e0be5e03cae236c9007b85cdee915626'}],\n",
       "   'typecode': '050103',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '海珠区',\n",
       "   'name': '炳胜品味(海印总店)',\n",
       "   'location': '113.286094,23.105431',\n",
       "   'tel': '020-34286911;020-34286910',\n",
       "   'shopid': [],\n",
       "   'id': 'B00140T9II'},\n",
       "  {'parent': [],\n",
       "   'address': '',\n",
       "   'distance': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '67.00',\n",
       "    'opentime2': '每天08:00-22:00',\n",
       "    'rating': '4.8',\n",
       "    'open_time': '08:00-22:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;广东菜(粤菜)',\n",
       "   'photos': [{'title': '用户',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/b5272a76a2f1d06d3e3c3afbee99c5bf'},\n",
       "    {'title': '用户',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/6b140f74d3844e064917cd502e30f1d5'},\n",
       "    {'title': '用户',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/c6534a1746c5d23bf3ba4b2652f9e4be'}],\n",
       "   'typecode': '050103',\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '番禺区',\n",
       "   'name': '点都德(骏和楼店)',\n",
       "   'location': '113.360105,22.950373',\n",
       "   'tel': '020-31147068;020-33147068;13662526193',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFHAELFS'},\n",
       "  {'parent': 'B00140AP13',\n",
       "   'address': '龙津西路151号',\n",
       "   'distance': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '81.00',\n",
       "    'opentime2': '06:00-22:00',\n",
       "    'rating': '4.9',\n",
       "    'open_time': '06:00-22:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;广东菜(粤菜)',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/23434c53cfb613c3a87076a2e2ccf1a4'},\n",
       "    {'title': '外景图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/fddbc7a6dc3fb38b2cd2c96287e85d99'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/233d1a0f4542c2ef490ca90d80c36808'}],\n",
       "   'typecode': '050103',\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'childtype': '302',\n",
       "   'adname': '荔湾区',\n",
       "   'name': '泮溪酒家',\n",
       "   'location': '113.236196,23.121309',\n",
       "   'tel': '020-81721328;020-81722788',\n",
       "   'shopid': [],\n",
       "   'id': 'B00140GQNN'},\n",
       "  {'parent': [],\n",
       "   'address': '宝华路十五甫三巷2-2号',\n",
       "   'distance': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '20.00',\n",
       "    'opentime2': '09:00-22:30',\n",
       "    'rating': '4.7',\n",
       "    'open_time': '09:00-22:30',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/b5c1e83827f73014103e5262a1aad0fc'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/d25b4a6b04a686bb94a31bc508fd49b7'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/3f7c233960503df8d8c126687f1ac7a1'}],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '荔湾区',\n",
       "   'name': '陈添记(十五甫三巷店)',\n",
       "   'location': '113.241616,23.114886',\n",
       "   'tel': '020-81828774;13751843770',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFF0ES1H'},\n",
       "  {'parent': [],\n",
       "   'address': '番禺大道北榄塘路万豪商业街',\n",
       "   'distance': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '92.00',\n",
       "    'opentime2': [],\n",
       "    'rating': '4.7',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;综合酒楼',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/839b721b52fd0a12df302010ceed6155'},\n",
       "    {'title': '产品图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/6e37b8d65f2ae8ba1a910781cd06230e'},\n",
       "    {'title': '产品图',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/25f2f95f23701799936de7ef34119a5b'}],\n",
       "   'typecode': '050101',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '番禺区',\n",
       "   'name': '汉景山庄',\n",
       "   'location': '113.355230,22.977940',\n",
       "   'tel': '020-39977388',\n",
       "   'shopid': [],\n",
       "   'id': 'B00140UE27'},\n",
       "  {'parent': 'B00140UVO5',\n",
       "   'address': '江燕路108号燕汇广场5层',\n",
       "   'distance': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '53.00',\n",
       "    'opentime2': '周一到周五11:00-14:00；17:00-21:30；周末11:00-21:30',\n",
       "    'rating': '4.7',\n",
       "    'open_time': '11:00-14:00 17:00-21:30 11:00-21:30',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;广东菜(粤菜)',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/308ec93ce0309b11c0084d8bd99f04bf'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/4741bc09dd30949ac127766d1ec71fa2'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/cde9a48c3b82253ff57dba773e6b4c0a'}],\n",
       "   'typecode': '050103',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '202',\n",
       "   'adname': '海珠区',\n",
       "   'name': '稻香酒家(江燕店)',\n",
       "   'location': '113.278018,23.082358',\n",
       "   'tel': '020-84264838',\n",
       "   'shopid': [],\n",
       "   'id': 'B00140UVO6'},\n",
       "  {'parent': [],\n",
       "   'address': '惠福东路470号(富临食府对面)',\n",
       "   'distance': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '65.00',\n",
       "    'opentime2': '08:00-22:00',\n",
       "    'rating': '4.9',\n",
       "    'open_time': '08:00-22:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/7dcfb8a351d31a06ebd51a11d23ac9be'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/0c83149b9cd9cf8f3f736e703cddd4d9'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/462c569cf3aa9db40e43d452ddc6b533'}],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '越秀区',\n",
       "   'name': '点都德(聚福楼店)',\n",
       "   'location': '113.265163,23.120456',\n",
       "   'tel': '020-83347013;13632423292',\n",
       "   'shopid': [],\n",
       "   'id': 'B00141VWBN'},\n",
       "  {'parent': [],\n",
       "   'address': '南村镇金山大道与金江大道交叉口(近南村新中学)',\n",
       "   'distance': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '82.00',\n",
       "    'opentime2': '09:30-14:30；16:30-21:30',\n",
       "    'rating': '4.8',\n",
       "    'open_time': '09:30-14:30 16:30-21:30',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅|体育休闲服务;休闲场所;休闲场所',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/f3d6eb600e3284262b019c3e6317e330'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/0e2f6f79a336df4f4cdc43ec6de65d2a'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/e98ee2906a65652bf8f254ba181e83a2'}],\n",
       "   'typecode': '050100|080500',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '番禺区',\n",
       "   'name': '鸽天下(南村店)',\n",
       "   'location': '113.390858,22.990855',\n",
       "   'tel': '020-84565238',\n",
       "   'shopid': [],\n",
       "   'id': 'B00141IJCF'},\n",
       "  {'parent': [],\n",
       "   'address': '洛浦街五洲装饰城沿江路段',\n",
       "   'distance': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '73.00',\n",
       "    'opentime2': '11:00-23:00',\n",
       "    'rating': '4.8',\n",
       "    'open_time': '11:00-23:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/320d85a0f72f0064b7f340a72b15e8e5'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/afa6e057700d5cd522b4103412a6ac35'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/d28403fe163e6b83bb23c40fff9f9929'}],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '番禺区',\n",
       "   'name': '四海一品',\n",
       "   'location': '113.317267,23.033006',\n",
       "   'tel': '020-34702688;020-34700222',\n",
       "   'shopid': [],\n",
       "   'id': 'B00140W5GY'},\n",
       "  {'parent': 'B00140BQ8A',\n",
       "   'address': '环市东路374号三茂大酒店3层',\n",
       "   'distance': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '58.00',\n",
       "    'opentime2': '07:00-16:00；17:00-22:30',\n",
       "    'rating': '4.7',\n",
       "    'open_time': '07:00-16:00 17:00-22:30',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;广东菜(粤菜)',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/9d8bbedc45b22e790160b7a32dffbb2f'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/b001975c7b958450cd78c432455460fc'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/000ec00e1c026cf59c0aad390c80c9b7'}],\n",
       "   'typecode': '050103',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '202',\n",
       "   'adname': '越秀区',\n",
       "   'name': '点都德(德粤楼)',\n",
       "   'location': '113.288005,23.135007',\n",
       "   'tel': '020-83028976;15718381418',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFFW389Q'},\n",
       "  {'parent': [],\n",
       "   'address': '应元路78-80号富宏花园1-3层(原同甘同味)',\n",
       "   'distance': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '78.00',\n",
       "    'opentime2': '09:00-22:00',\n",
       "    'rating': '4.8',\n",
       "    'open_time': '09:00-22:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;综合酒楼',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/72cf66b083f2098690951b1834f60876'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/0c8dc05a48feaef9f85febd2785850be'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/0fb9a8f188112d2dbc6c7c838886fa6e'}],\n",
       "   'typecode': '050101',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '越秀区',\n",
       "   'name': '竹溪酒家(应元店)',\n",
       "   'location': '113.269340,23.134840',\n",
       "   'tel': '020-83566222;020-83566000',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFH6WDVR'},\n",
       "  {'parent': 'B0FFG9VLT4',\n",
       "   'address': '花城大道16号铂林国际公寓C座2层',\n",
       "   'distance': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '72.00',\n",
       "    'opentime2': '08:00-22:00',\n",
       "    'rating': '4.9',\n",
       "    'open_time': '08:00-22:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;广东菜(粤菜)',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/9d8bbedc45b22e790160b7a32dffbb2f'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/c4b00917126ea86518995d44f6ce5892'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/0102f11916c18abadd0eb519b96ea9ec'}],\n",
       "   'typecode': '050103',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '202',\n",
       "   'adname': '天河区',\n",
       "   'name': '点都德(花城店)',\n",
       "   'location': '113.316484,23.119368',\n",
       "   'tel': '020-37266163;13922738176',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFGHMLDC'},\n",
       "  {'parent': 'B00140TFHO',\n",
       "   'address': '天河路228号正佳广场6层C059铺',\n",
       "   'distance': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '92.00',\n",
       "    'opentime2': '周一至周四10:00-21:00,周五至周日10:00-21:30',\n",
       "    'rating': '4.8',\n",
       "    'open_time': '10:00-21:00 10:00-21:30',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;综合酒楼',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/d5de7499ed1fc3f888f4fd82def21876'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/abeca660f8fd7d15c289d83f9f8dc8dd'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/5b273f61b3b990848e5edca564313c13'}],\n",
       "   'typecode': '050101',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '201',\n",
       "   'adname': '天河区',\n",
       "   'name': '陶陶居(正佳广场店)',\n",
       "   'location': '113.327160,23.131475',\n",
       "   'tel': '020-38373301;020-38373302',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFG2O3RL'},\n",
       "  {'parent': 'B00141TJQS',\n",
       "   'address': '新港中路354号F1层123',\n",
       "   'distance': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '96.00',\n",
       "    'opentime2': '09:00-07:00',\n",
       "    'rating': '4.9',\n",
       "    'open_time': '09:00-07:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;火锅店',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/39efab8a921af62b1c90d3e6be9aea0a'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/5266d0b30c1394d6f4d711ce445d527a'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/605b245fecc83ddf6171cc9c94dea5e5'}],\n",
       "   'typecode': '050117',\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'childtype': '201',\n",
       "   'adname': '海珠区',\n",
       "   'name': '海底捞火锅(珠影星光城店)',\n",
       "   'location': '113.321483,23.094361',\n",
       "   'tel': '020-89440008',\n",
       "   'shopid': [],\n",
       "   'id': 'B00141S09V'},\n",
       "  {'parent': [],\n",
       "   'address': '科韵北路白艾草岗1号(近南峰酒店)',\n",
       "   'distance': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '191.00',\n",
       "    'opentime2': '09:00-01:00',\n",
       "    'rating': '4.9',\n",
       "    'open_time': '09:00-01:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;海鲜酒楼',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/b875231ce616dbd0c987dda9d227ed21'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/4eb8af712a9d445337539cf411d0c05c'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/6db45cc4e3a9b8ab8a94cf6384d84b2a'}],\n",
       "   'typecode': '050119',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '天河区',\n",
       "   'name': '渔民新村(天河店)',\n",
       "   'location': '113.379788,23.145539',\n",
       "   'tel': '020-38059088;020-38059818',\n",
       "   'shopid': [],\n",
       "   'id': 'B00141SD0D'},\n",
       "  {'parent': 'B00141J7BS',\n",
       "   'address': '体育西路191号中石化大厦4楼',\n",
       "   'distance': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '150.00',\n",
       "    'opentime2': '09:00-07:00',\n",
       "    'rating': '4.9',\n",
       "    'open_time': '09:00-07:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;火锅店',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/2201fab8159cadf3e8131906f2df0ca2'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/295ec9c0f6abc6c93695fad1b51b4c7a'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/39efab8a921af62b1c90d3e6be9aea0a'}],\n",
       "   'typecode': '050117',\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'childtype': '201',\n",
       "   'adname': '天河区',\n",
       "   'name': '海底捞(佳兆业广场店)',\n",
       "   'location': '113.320560,23.139945',\n",
       "   'tel': '020-38081699',\n",
       "   'shopid': [],\n",
       "   'id': 'B0FFFSSCXE'},\n",
       "  {'parent': [],\n",
       "   'address': '沙墟一村村心大街43号',\n",
       "   'distance': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': '74.00',\n",
       "    'opentime2': '11:00-14:00；17:00-21:00',\n",
       "    'rating': '4.6',\n",
       "    'open_time': '11:00-14:00 17:00-21:00',\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;广东菜(粤菜)',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/bd641954c4d26c0e229b30eba3f05cdf'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/001589b0eabe977937175955aaec84c3'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/1022ed90d258535dd5316106d2a0e81c'}],\n",
       "   'typecode': '050103',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '番禺区',\n",
       "   'name': '鸽天下(市桥分店)',\n",
       "   'location': '113.377538,22.945692',\n",
       "   'tel': '020-84694625',\n",
       "   'shopid': [],\n",
       "   'id': 'B00140V3ED'},\n",
       "  {'parent': 'B0014098D6',\n",
       "   'address': '禺山大道89号新世界大厦副楼1-3层',\n",
       "   'distance': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'opentime2': [],\n",
       "    'rating': '4.1',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'diner',\n",
       "   'cityname': '广州市',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/e246cd152b756ea9b93c11e6f529a740'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/dd9fedc8b66cdb1d5ab1f5eb578c27b7'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/31aa01bbf1fcc55615526483e0f710ef'}],\n",
       "   'typecode': '050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': '202',\n",
       "   'adname': '番禺区',\n",
       "   'name': 'K歌王自助餐(番禺店)',\n",
       "   'location': '113.362500,22.940050',\n",
       "   'tel': '020-66866666',\n",
       "   'shopid': [],\n",
       "   'id': 'B00141IDL9'},\n",
       "  {'parent': [],\n",
       "   'address': '天河路89号',\n",
       "   'distance': [],\n",
       "   'pname': '广东省',\n",
       "   'importance': [],\n",
       "   'biz_ext': {'cost': [],\n",
       "    'star': [],\n",
       "    'opentime2': [],\n",
       "    'rating': '4.7',\n",
       "    'lowest_price': [],\n",
       "    'hotel_ordering': '0',\n",
       "    'open_time': [],\n",
       "    'meal_ordering': '0'},\n",
       "   'biz_type': 'hotel',\n",
       "   'cityname': '广州市',\n",
       "   'type': '住宿服务;宾馆酒店;四星级宾馆|住宿服务;宾馆酒店;五星级宾馆|餐饮服务;中餐厅;中餐厅',\n",
       "   'photos': [{'provider': [],\n",
       "     'title': '酒店外观',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/8e1e1e7c8bd66e8773518225b9f64f27'},\n",
       "    {'provider': [],\n",
       "     'title': '酒店外景',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/135337a367ec14cbbc568a309bd3897b'},\n",
       "    {'provider': [],\n",
       "     'title': '客房',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/e1fb321b3a525a27f32819ef2b03f922'}],\n",
       "   'typecode': '100103|100102|050100',\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'childtype': [],\n",
       "   'adname': '天河区',\n",
       "   'name': '皇家国际饭店',\n",
       "   'location': '113.317128,23.134369',\n",
       "   'tel': '020-83988888',\n",
       "   'shopid': [],\n",
       "   'id': 'B00140ANF3'}],\n",
       " 'status': '1',\n",
       " 'info': 'OK'}"
      ]
     },
     "execution_count": 1,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# extensions=all\n",
    "# 1. 调用requests模块\n",
    "import requests\n",
    "\n",
    "# 2. 请求方法：GET\n",
    "\n",
    "# 3. URL地址：\n",
    "geo_url = \"https://restapi.amap.com/v3/place/text?parameters\"\n",
    "\n",
    "# 4. 准备参数，用于交换数据 payload\n",
    "payload = {\n",
    "    \"key\":\"d8f8dec8d7c7b0d5cdcd9b273f65048d\",\n",
    "    \"types\":\"中餐厅\",\n",
    "    \"city\":\"广州市\",\n",
    "    \n",
    "}\n",
    "\n",
    "# 5. 发起请求\n",
    "r = requests.get(url=geo_url,params=payload)\n",
    "r.json()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "id": "5d74fd4e",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'pois': [{'name': '正果云吞',\n",
       "   'id': 'B0FFK1IMV4',\n",
       "   'location': '113.586602,23.548857',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'typecode': '050100',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '从化区',\n",
       "   'address': '新城东路与新城东路六巷交叉口北100米',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440117'},\n",
       "  {'name': '粤',\n",
       "   'id': 'B0IGK9OPB2',\n",
       "   'location': '113.586614,23.548861',\n",
       "   'type': '餐饮服务;中餐厅;特色/地方风味餐厅',\n",
       "   'typecode': '050118',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '从化区',\n",
       "   'address': '新城东路与新城东路六巷交叉口北100米',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440117'},\n",
       "  {'name': '湘川小吃凉拌店',\n",
       "   'id': 'B0FFIXN322',\n",
       "   'location': '113.587185,23.548505',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'typecode': '050100',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '从化区',\n",
       "   'address': '荔香村新城东路6-7',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440117'},\n",
       "  {'name': '天桥美食',\n",
       "   'id': 'B0G2AC735O',\n",
       "   'location': '113.585728,23.548493',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'typecode': '050100',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '从化区',\n",
       "   'address': '新城中路顺秀楼顺丽楼西南侧',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440117'},\n",
       "  {'name': '广振潮汕猪肚鸡汤饭',\n",
       "   'id': 'B0HRM5JFSM',\n",
       "   'location': '113.587600,23.548869',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'typecode': '050100',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '从化区',\n",
       "   'address': '荔香村(新城东路99号正东方向120米)',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440117'},\n",
       "  {'name': '柳州螺蛳粉(广百分店)',\n",
       "   'id': 'B0FFG2JO93',\n",
       "   'location': '113.587499,23.548399',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'typecode': '050100',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '从化区',\n",
       "   'address': '街口街道新城东路荔香村6号之三',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440117'},\n",
       "  {'name': '潮味记粉面世家',\n",
       "   'id': 'B0H3FXETGF',\n",
       "   'location': '113.587557,23.548398',\n",
       "   'type': '餐饮服务;中餐厅;潮州菜',\n",
       "   'typecode': '050123',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '从化区',\n",
       "   'address': '街口街新城东路荔香村6号之二',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440117'},\n",
       "  {'name': '八哥酸辣粉(荔香村店)',\n",
       "   'id': 'B0FFF3UW5J',\n",
       "   'location': '113.587575,23.548397',\n",
       "   'type': '餐饮服务;中餐厅;四川菜(川菜)|餐饮服务;中餐厅;特色/地方风味餐厅',\n",
       "   'typecode': '050102|050118',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '从化区',\n",
       "   'address': '街口街东成路荔香邨二期首层A3号',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440117'},\n",
       "  {'name': '和气美食小炒菜(荔香村店)',\n",
       "   'id': 'B0FFLAGSEB',\n",
       "   'location': '113.587683,23.548690',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'typecode': '050100',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '从化区',\n",
       "   'address': '新东城路荔香村5-10号',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440117'},\n",
       "  {'name': '哈喽窖鸡',\n",
       "   'id': 'B0FFL7ENDF',\n",
       "   'location': '113.587689,23.548673',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'typecode': '050100',\n",
       "   'pname': '广东省',\n",
       "   'cityname': '广州市',\n",
       "   'adname': '从化区',\n",
       "   'address': '新城东路荔香村5-9',\n",
       "   'pcode': '440000',\n",
       "   'citycode': '020',\n",
       "   'adcode': '440117'}],\n",
       " 'count': '10'}"
      ]
     },
     "execution_count": 5,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# extensions=all\n",
    "# 1. 调用requests模块\n",
    "import requests\n",
    "\n",
    "# 2. 请求方法：GET\n",
    "\n",
    "# 3. URL地址：\n",
    "geo_url = \"https://restapi.amap.com/v5/place/around?parameters\"\n",
    "\n",
    "# 4. 准备参数，用于交换数据 payload\n",
    "payload = {\n",
    "    \"key\":\"d8f8dec8d7c7b0d5cdcd9b273f65048d\",\n",
    "    \"types\":\"中餐厅\",\n",
    "    \"location\":广州南方学院_location,\n",
    "    \n",
    "}\n",
    "\n",
    "# 5. 发起请求\n",
    "r = requests.get(url=geo_url,params=payload)\n",
    "r.json()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "f3de359d",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.8"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
